package com.ff.neuropp.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ff.neuropp.util.DateSerializer;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@Entity
@Table(name = "t_system_Config", uniqueConstraints = {@UniqueConstraint(columnNames="id")})
/**
 * 职业生涯表
 * @author sun_weiwu
 *
 */
public class SystemConfig {
	 private static final long serialVersionUID = 1L;

	 
	   @Id
	    @GeneratedValue(strategy = GenerationType.IDENTITY)
	    private int id;
	 
	    @Column(name = "business_id", columnDefinition = "varchar(100) COMMENT '商户Id'")
	    @ApiModelProperty(value = "商户Id")
	    private String businessId;

	    @Column(name = "business_name", columnDefinition = "varchar(100) COMMENT '商户名称'")
	    @ApiModelProperty(value = "商户名称")
	    private String businessName; 
	    
	    @Column(name = "point_top", columnDefinition = "int(11) COMMENT '积分上限'")
	    @ApiModelProperty(value = "积分上限")
	    private Integer pointTop=5000; 
	    
	    //操作时间
	    @Column(updatable = false)
	    @org.hibernate.annotations.CreationTimestamp
	    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	    @JsonSerialize(using = DateSerializer.class)
	    private Date create_date;
	    
	    @Column(name = "update_time", columnDefinition = "datetime COMMENT '更新时间'")
	    private Date updateTime;
	    
}
